package magnus.minimap;

import java.util.Date;

import android.location.Location;

import com.google.android.maps.GeoPoint;

public class Friend {
	public int f_id;
	public Location location;
	public Date date;
	
	public Friend (int f_id, Location location, Date date) {
		this.f_id = f_id;
		this.location = location;
		this.date = date;
	}
	
	public int get_f_id() { return f_id;}
	
	public void setLocation(Location location) {this.location = location;}
	
	public GeoPoint getGeoPoint () {
		return new GeoPoint((int)(location.getLatitude() * 1e6),(int)(location.getLongitude() * 1e6));
	}
}